<template>
    <div class="job"> 
        <Post v-for="(post,index) in list" :key="index" :post="post" :isGroup='true' v-lazy="post"/>
    </div>
</template>

<script>
import Post from '../common/post/Post.vue'
import axios from 'axios'
export default {
    name:'Job',
    components:{
        Post
    },
    data() {
        return {
            list:[
                {
                    bodyId: 34,
                    classname: "交流圈子",
                    collection: 147,
                    content: "工作名称：校园外卖                                                   工作地点：河南科技学院                                           工资：30/小时                                                             工作条件：空闲时间多，愿意吃苦的河南科技学院学生，并且有一辆自己的电动车。",
                    img: "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.lemeitu.com%2Fm00%2Fc9%2F59%2F5e77d24e00349caf34a919bf869a7be6__w.jpg&refer=http%3A%2F%2Fimg.lemeitu.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1651479685&t=edb2d0acaa5eb1d965f553d9277c835a",
                    imgs: `https://img2.baidu.com/it/u=2191673519,972318457&fm=253&fmt=auto&app=120&f=JPEG?w=810&h=500;
                    https://img0.baidu.com/it/u=2875713655,3281183845&fm=253&fmt=auto&app=120&f=JPEG?w=1200&h=714;
                    https://img0.baidu.com/it/u=1569539571,23230262&fm=253&fmt=auto&app=138&f=JPEG?w=735&h=500
                    `,
                    nickname: "图片集",
                    praise: 294,
                    state: 0,
                    time: "2022-02-28 19:45:31",
                    userId: 11,
                },
                {
                    bodyId: 34,
                    classname: "交流圈子",
                    collection: 147,
                    content: "工作名称：食堂助手                                                   工作地点：河南科技学院第一学生餐厅                                           工资：50/天                                                                    工作条件：空闲时间多，愿意吃苦的河南科技学院学生。                                                                                             工作福利：吃饭免费",
                    img: "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.lemeitu.com%2Fm00%2Fc9%2F59%2F5e77d24e00349caf34a919bf869a7be6__w.jpg&refer=http%3A%2F%2Fimg.lemeitu.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1651479685&t=edb2d0acaa5eb1d965f553d9277c835a",
                    imgs: `https://img0.baidu.com/it/u=3013945137,4203844317&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=374;
                    https://img1.baidu.com/it/u=1030391174,377613921&fm=253&fmt=auto&app=138&f=JPEG?w=728&h=500;
                    https://img1.baidu.com/it/u=3838711008,1243113439&fm=26&fmt=auto
                    `,
                    nickname: "图片集",
                    praise: 294,
                    state: 0,
                    time: "2022-02-28 19:45:31",
                    userId: 11,
                },
            ]
        }
    },
    props:['post'],
    mounted() {
        axios({
            url:'/body/findSuch',
            method:'get',
            params:{
                classsname:'兼职',
                // userId:1//默认的用户id
            }
        }).then(data=>{
            this.list = data.data.data
            console.log(data)
        }).catch(err=>{
            console.log(err)
        })
    },
}
</script>

<style>
.job{
    background-color: #fafafa;
}
</style>